<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>消息分类</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://at.alicdn.com/t/font_2627533_d7zlvvj6zdr.css">
    <style>
        body {
            background-color: #f5f5f5;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        .icon {
            font-size: 1.2rem;
        }
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #8c8c8c;
            font-size: 0.75rem;
        }
        .nav-item.active {
            color: #0052d9;
        }
        .tab-item {
            padding: 10px 16px;
            text-align: center;
            font-size: 0.9rem;
            position: relative;
        }
        .tab-item.active {
            color: #0052d9;
            font-weight: 500;
        }
        .tab-item.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            background-color: #0052d9;
            border-radius: 2px;
        }
        .card {
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        .unread-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background-color: #ff4d4f;
            position: absolute;
            top: 2px;
            right: 2px;
        }
        .unread-count {
            min-width: 16px;
            height: 16px;
            border-radius: 8px;
            background-color: #ff4d4f;
            color: white;
            font-size: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 0;
            right: 0;
            padding: 0 4px;
        }
    </style>
</head>
<body class="min-h-screen">
    <header class="bg-white p-4 flex items-center shadow-sm">
        <a href="../core/messages.html" class="mr-4">
            <i class="icon iconfont icon-arrow-left"></i>
        </a>
        <h1 class="text-lg font-medium flex-1">消息中心</h1>
        <button class="text-gray-600">
            <i class="icon iconfont icon-setting"></i>
        </button>
    </header>

    <!-- 搜索栏 -->
    <div class="p-3 bg-white">
        <div class="flex items-center bg-gray-100 rounded-full px-3 py-2">
            <i class="icon iconfont icon-search text-gray-400 text-sm mr-2"></i>
            <input type="text" placeholder="搜索消息内容" class="bg-transparent border-none flex-1 text-sm focus:outline-none">
        </div>
    </div>

    <!-- 分类标签 -->
    <div class="bg-white flex border-b border-gray-200">
        <div class="tab-item active">全部</div>
        <div class="tab-item">系统通知</div>
        <div class="tab-item">订单消息</div>
        <div class="tab-item">商家沟通</div>
    </div>

    <!-- 消息筛选 -->
    <div class="bg-white p-3 flex justify-between border-b border-gray-200">
        <div class="flex items-center text-sm text-gray-600">
            <span>筛选：</span>
            <select class="border-none bg-transparent focus:outline-none">
                <option>全部消息</option>
                <option>未读消息</option>
                <option>已读消息</option>
            </select>
        </div>
        <div class="flex items-center text-sm text-gray-600">
            <span>时间：</span>
            <select class="border-none bg-transparent focus:outline-none">
                <option>全部时间</option>
                <option>最近一周</option>
                <option>最近一月</option>
            </select>
        </div>
    </div>

    <main class="p-3">
        <!-- 系统通知 -->
        <div class="mb-3">
            <div class="text-xs text-gray-500 mb-2">系统通知</div>
            <div class="bg-white card mb-3">
                <div class="p-3 flex items-start">
                    <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3 flex-shrink-0 relative">
                        <i class="icon iconfont icon-notice text-blue-500"></i>
                        <span class="unread-dot"></span>
                    </div>
                    <div class="flex-1">
                        <div class="flex justify-between items-start">
                            <div class="font-medium text-sm">平台活动通知</div>
                            <div class="text-xs text-gray-500">10:25</div>
                        </div>
                        <div class="text-sm text-gray-600 mt-1">
                            【端午特惠】贵州四季康养文旅平台端午节活动开始啦！多重好礼等你来拿
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="bg-white card mb-3">
                <div class="p-3 flex items-start">
                    <div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mr-3 flex-shrink-0">
                        <i class="icon iconfont icon-refresh text-green-500"></i>
                    </div>
                    <div class="flex-1">
                        <div class="flex justify-between items-start">
                            <div class="font-medium text-sm">系统更新通知</div>
                            <div class="text-xs text-gray-500">昨天</div>
                        </div>
                        <div class="text-sm text-gray-600 mt-1">
                            小程序已更新至最新版本，新增健康数据同步、AR导览等功能
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="bg-white card">
                <div class="p-3 flex items-start">
                    <div class="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center mr-3 flex-shrink-0">
                        <i class="icon iconfont icon-safe text-yellow-500"></i>
                    </div>
                    <div class="flex-1">
                        <div class="flex justify-between items-start">
                            <div class="font-medium text-sm">安全提醒</div>
                            <div class="text-xs text-gray-500">6月1日</div>
                        </div>
                        <div class="text-sm text-gray-600 mt-1">
                            您的账号在新设备上登录，如非本人操作，请及时修改密码
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 订单消息 -->
        <div class="mb-3">
            <div class="text-xs text-gray-500 mb-2">订单消息</div>
            <div class="bg-white card mb-3">
                <div class="p-3 flex items-start">
                    <div class="w-10 h-10 rounded-full bg-red-100 flex items-center justify-center mr-3 flex-shrink-0 relative">
                        <i class="icon iconfont icon-order text-red-500"></i>
                        <span class="unread-dot"></span>
                    </div>
                    <div class="flex-1">
                        <div class="flex justify-between items-start">
                            <div class="font-medium text-sm">订单状态更新</div>
                            <div class="text-xs text-gray-500">12:30</div>
                        </div>
                        <div class="text-sm text-gray-600 mt-1">
                            您的订单 #GZ2025060312301254 已发货，预计6月5日送达
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="bg-white card">
                <div class="p-3 flex items-start">
                    <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3 flex-shrink-0">
                        <i class="icon iconfont icon-express text-blue-500"></i>
                    </div>
                    <div class="flex-1">
                        <div class="flex justify-between items-start">
                            <div class="font-medium text-sm">物流信息</div>
                            <div class="text-xs text-gray-500">昨天</div>
                        </div>
                        <div class="text-sm text-gray-600 mt-1">
                            您的订单 #GZ2025060215485632 已到达【贵阳观山湖区分拣中心】
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 商家沟通 -->
        <div>
            <div class="text-xs text-gray-500 mb-2">商家沟通</div>
            <div class="bg-white card mb-3">
                <a href="merchant_chat.html" class="p-3 flex items-start block">
                    <div class="w-10 h-10 rounded-full overflow-hidden mr-3 flex-shrink-0 relative">
                        <img src="https://via.placeholder.com/40x40?text=店铺1" class="w-full h-full object-cover" alt="商家头像">
                        <span class="unread-count">3</span>
                    </div>
                    <div class="flex-1">
                        <div class="flex justify-between items-start">
                            <div class="font-medium text-sm">清镇苗族手工艺品店</div>
                            <div class="text-xs text-gray-500">15:20</div>
                        </div>
                        <div class="text-sm text-gray-600 mt-1 line-clamp-1">
                            有的，我这就发给您视频介绍，您可以详细了解制作工艺。
                        </div>
                    </div>
                </a>
            </div>
            
            <div class="bg-white card mb-3">
                <div class="p-3 flex items-start">
                    <div class="w-10 h-10 rounded-full overflow-hidden mr-3 flex-shrink-0">
                        <img src="https://via.placeholder.com/40x40?text=店铺2" class="w-full h-full object-cover" alt="商家头像">
                    </div>
                    <div class="flex-1">
                        <div class="flex justify-between items-start">
                            <div class="font-medium text-sm">茅台镇酱香白酒旗舰店</div>
                            <div class="text-xs text-gray-500">昨天</div>
                        </div>
                        <div class="text-sm text-gray-600 mt-1 line-clamp-1">
                            感谢您的购买，我们已经为您安排发货，有任何问题随时联系我们
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="bg-white card">
                <div class="p-3 flex items-start">
                    <div class="w-10 h-10 rounded-full overflow-hidden mr-3 flex-shrink-0">
                        <img src="https://via.placeholder.com/40x40?text=店铺3" class="w-full h-full object-cover" alt="商家头像">
                    </div>
                    <div class="flex-1">
                        <div class="flex justify-between items-start">
                            <div class="font-medium text-sm">梵净山高山茶叶专营店</div>
                            <div class="text-xs text-gray-500">6月1日</div>
                        </div>
                        <div class="text-sm text-gray-600 mt-1 line-clamp-1">
                            您好，感谢您对我们茶叶的关注，目前新茶已经上市，欢迎品尝
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>
    
    <!-- 底部导航 -->
    <div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200">
        <div class="flex justify-around py-2">
            <a href="../core/home.html" class="nav-item">
                <i class="icon iconfont icon-home"></i>
                <span>首页</span>
            </a>
            <a href="../core/discover.html" class="nav-item">
                <i class="icon iconfont icon-discover"></i>
                <span>发现</span>
            </a>
            <a href="../core/messages.html" class="nav-item active">
                <i class="icon iconfont icon-message"></i>
                <span>消息</span>
            </a>
            <a href="../core/profile.html" class="nav-item">
                <i class="icon iconfont icon-user"></i>
                <span>我的</span>
            </a>
        </div>
    </div>
</body>
</html> 